import { createMemoryHistory, createRouter } from 'vue-router'

import User from "../src/components/User.vue";
import Goods from "../src/components/Goods.vue";
import Order from "../src/components/Order.vue";

const routes = [
  { path: '/', component: User },
  { path: '/user', component: User },
  { path: '/goods', component: Goods },
  { path: '/order', component: Order },
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})

export default router